package com.foreverwin.mes.warehouse.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.foreverwin.mes.meapi.model.ReasonCode;
import com.foreverwin.mes.meapi.model.StorageLocation;
import com.foreverwin.mes.warehouse.model.InventoryMoveLog;
import com.baomidou.mybatisplus.service.IService;
import com.foreverwin.mes.core.base.FrontPage;
import com.foreverwin.mes.warehouse.vo.InventoryMoveLogVo;

import java.util.List;

/**
 * <p>
 * 库存调拨记录 服务类
 * </p>
 *
 * @author Ervin Chen
 * @since 2020-02-18
 */
public interface InventoryMoveLogService extends IService<InventoryMoveLog> {

    /**
     * 分页查询
     *
     * @param frontPage
     * @return
     */
    Page<InventoryMoveLog> selectPage(FrontPage<InventoryMoveLog> frontPage, InventoryMoveLog inventoryMoveLog);

    List<InventoryMoveLog> selectList(InventoryMoveLog inventoryMoveLog);

    List<ReasonCode> selectReasonCodeList();

    List<StorageLocation> selectStorageLocationList(String reasonCodeBo);

    InventoryMoveLogVo selectInventory(String reasonCodeBo, String inventoryId);

    boolean insertOrUpdate(List<InventoryMoveLog> inventoryMoveLogs);
}